﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

#nullable disable

namespace Faser_Shop.Models.Database
{
    public partial class ShoppingCart
    {
        [Key]
        [Column("CartID")]
        public int CartId { get; set; }
        [Column("UserID")]
        public int? UserId { get; set; }
        [Column("ProductID")]
        public int? ProductId { get; set; }
        public int? ProductQuantity { get; set; }

        [ForeignKey(nameof(ProductId))]
        [InverseProperty("ShoppingCarts")]
        public virtual Product Product { get; set; }
        [ForeignKey(nameof(UserId))]
        [InverseProperty("ShoppingCarts")]
        public virtual User User { get; set; }
    }
}
